/**
* @author:kellen
* @contact:xiekellen@hotmail.com
* @company:achivo-gz
* @created on:
* @modified on:
*/

package com.sasis.service.impl;

import java.util.List;

import com.sasis.service.impl.BaseManager;
import com.sasis.model.PassengerState;
import com.sasis.dao.PassengerStateDao;
import com.sasis.service.PassengerStateManager;

import com.sasis.util.PageList;
import com.sasis.util.PageRequest;

public class PassengerStateManagerImpl extends BaseManager implements PassengerStateManager {
    private PassengerStateDao dao;

    /**
     * Set the Dao for communication with the data layer.
     * @param dao
     */
    public void setPassengerStateDao(PassengerStateDao dao) {
        this.dao = dao;
    }

    /**
     * @see com.sasis.service.PassengerStateManager#getPassengerStates(com.sasis.model.PassengerState)
     */
    public List getPassengerStates(final PassengerState passengerState) {
        return dao.getPassengerStates(passengerState);
    }

    /**
     * @see com.sasis.service.PassengerStateManager#getPassengerState(String id)
     */
    public PassengerState getPassengerState(final String id) {
        return dao.getPassengerState(new Integer(id));
    }

    /**
     * @see com.sasis.service.PassengerStateManager#savePassengerState(PassengerState passengerState)
     */
    public void savePassengerState(PassengerState passengerState) {
        dao.savePassengerState(passengerState);
    }

    /**
     * @see com.sasis.service.PassengerStateManager#removePassengerState(String id)
     */
    public void removePassengerState(PassengerState passengerState) {
        dao.removePassengerState( passengerState);
    }
    public PageList queryForPageList(String listStatementId,  
    		Object parameterObject, PageRequest pageRequest){
	return dao.queryForPageList(listStatementId,   parameterObject, pageRequest);
    }
}
